﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KD.Sms.UI
{
    public partial class KdTextBox : UserControl
    {
        public KdTextBox()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        public string C_Title
        {
            set { labTitle.Text = value + ":"; }
            get { return labTitle.Text.Replace(":", ""); }
        }

        /// <summary>
        /// 
        /// </summary>
        public int C_TitleWidth
        {
            set { labTitle.Width = value;this.Refresh(); }
            get { return labTitle.Width; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string C_Value
        {
            set { txtValue.Text = value; }
            get { return txtValue.Text; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int C_ValueWidth
        {
            set { txtValue.Width = value; this.Refresh(); }
            get { return txtValue.Width; }
        }


    }
}
